<extend name="Base/common"/>

<block name="body">
    <div class="aui-searchbar" id="search">
        <div class="aui-searchbar-input aui-border-radius" tapmode onclick="doSearch()">
            <i class="aui-iconfont aui-icon-search"></i>
            <form id="form_seach" action="__SELF__" method="post">
                <input type="text" placeholder="请输入搜索内容" id="search-input"  name="title">
            </form>
        </div>
        <div class="aui-searchbar-cancel" tapmod onclick="search();">搜索</div>
    </div>
    <script>
       function search() {
           var title =$("#search-input").val();
           if($.trim(title) == ""){
               alert("搜索内容不能为空");
               return false;
           }else{
               $("#form_seach").submit();
           }
       }
    </script>
   <eq name="_GET['cate_id']" value="200">
    <div class="aui-searchbar">
         联系电话：15808072994，023-88962369
    </div>
   </eq>
    <div class="list-content">
      <volist name="lists" id="val">
        <a class="aui-row-padded" href="{:U('Merchant/detail',array('id'=>$val['id']))}" >
            <div class="aui-col-xs-4 left">
                <img src="{$val.cover_id|get_cover='path'}">
            </div>
            <div class="aui-col-xs-8 right">
                <p class="txt aui-ellipsis-2">
                    {$val.title}
                </p>
                <p class="date">{$val.create_time|date="Y-m-d",###}　查看详情</p>
            </div>
        </a>
      </volist>
    </div>
    <div style="width: 100%;height: 3.5rem;background: #eceef3;"></div>
</block>
<block name="footer_js">
    
</block>